package com.gz.logistics.util;

import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;


public class DialogUtils {


	public static ProgressDialog showProgressDialog(final Context context, final String title, final String message, final boolean indeterminate, final boolean cancelable, final OnCancelListener onCancelListener) {


		return ProgressDialog.show(context, title, message, indeterminate, cancelable, new OnCancelListener() {

			@Override
			public void onCancel(final DialogInterface dialog) {
				if (onCancelListener != null) {
					onCancelListener.onCancel(dialog);
				}
			}
		});
	}
}
